# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-lualine
pkgver=0.0.0_git20220307
_commit=88a44ade818f9ee7ba730aa4096250e22b243808
pkgrel=1
pkgdesc="fast and easy to configure neovim statusline plugin"
url="https://github.com/nvim-lualine/lualine.nvim"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
source="https://github.com/nvim-lualine/lualine.nvim/archive/$_commit/nvim-lualine-$pkgver.tar.gz"
builddir="$srcdir/lualine.nvim-$_commit"
options="!check" # requires neovim binary

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua doc "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
cfd4d8c1a3327667c137f1f365f05f6fa28b958b900bcf7f48fda7f51dd3602022673ea4030e38e34d51a0a10c59364efc991e35019f69b122a37a46537e59d8  nvim-lualine-0.0.0_git20220307.tar.gz
"
